import React from 'react'
import { useLocation } from 'react-router'

function Index() {
    const {state}=useLocation()
    console.log(state)
    return (
        <div>
            <ul>
                <li>{state.message}</li>
                <li>{state.classfy}</li>
                <li>{state.people}</li>
                <li>{state.startTime}</li>
                <li>{state.endTime}</li>
            </ul>
        </div>
    )
}

export default Index
